package com.umakr.demo.model;

import java.util.List;
import java.util.Map;

/**
 * Created by yangliu on 2017/8/15.
 */
public class Combobox {
    private String value;
    private String text;
    private String group;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public Combobox(String value, String text, String group) {
        this.value = value;
        this.text = text;
        this.group = group;
    }

    /**
     * Created by yangliu on 2017/8/15.
     */
    public static class Persion {
        private  int id;
        private String name;

        @Override
        public String toString() {
            return "Persion{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    '}';
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    /**
     * Created by yangliu on 2017/8/12.
     */
    public static class pojo {
        private String productid;
    //    private  String productname;
        private String unitcost;
        private String status;
        private String listprice;
        private String attr1;
        private String itemid;

        public String getProductid() {
            return productid;
        }

        public void setProductid(String productid) {
            this.productid = productid;
        }

    //    public String getProductname() {
    //        return productname;
    //    }
    //
    //    public void setProductname(String productname) {
    //        this.productname = productname;
    //    }

        public String getUnitcost() {
            return unitcost;
        }

        public void setUnitcost(String unitcost) {
            this.unitcost = unitcost;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getListprice() {
            return listprice;
        }

        public void setListprice(String listprice) {
            this.listprice = listprice;
        }

        public String getAttr1() {
            return attr1;
        }

        public void setAttr1(String attr1) {
            this.attr1 = attr1;
        }

        public String getItemid() {
            return itemid;
        }

        public void setItemid(String itemid) {
            this.itemid = itemid;
        }
    }

    /**
     * Created by yangliu on 2017/8/14.
     */
    public static class Product
    {
        private String productid;
        private String productname;
        private String unitcost;
        private String status;
        private String listprice;
        private String attr1;
        private String itemid;

        public String getAttr1() {
            return attr1;
        }

        public void setAttr1(String attr1) {
            this.attr1 = attr1;
        }

        public Product(String productid, String productname, String unitcost, String status, String listprice, String attr1, String itemid) {
            this.productid = productid;
            this.productname = productname;
            this.unitcost = unitcost;
            this.status = status;
            this.listprice = listprice;
            this.attr1 = attr1;
            this.itemid = itemid;
        }

        public String getProductid() {
            return productid;
        }

        public void setProductid(String productid) {
            this.productid = productid;
        }

        public String getProductname() {
            return productname;
        }

        public void setProductname(String productname) {
            this.productname = productname;
        }

        public String getUnitcost() {
            return unitcost;
        }

        public void setUnitcost(String unitcost) {
            this.unitcost = unitcost;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getListprice() {
            return listprice;
        }

        public void setListprice(String listprice) {
            this.listprice = listprice;
        }

        public String getItemid() {
            return itemid;
        }

        public void setItemid(String itemid) {
            this.itemid = itemid;
        }
    }

    /**
     * Created by yangliu on 2017/8/15.
     */
    public static class Tree {
        private String id ;
        private String pid;
        private String text;
        private List<Tree> children;


        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getPid() {
            return pid;
        }

        public void setPid(String pid) {
            this.pid = pid;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public List<Tree> getChildren() {
            return children;
        }

        public void setChildren(List<Tree> children) {
            this.children = children;
        }
    }

    /**
     * Created by yangliu on 2017/8/12.
     */
    public static class treedemo {
       private String id;
       private String text;
       private String state;
       private List<treedemo> children;
       private List<Map> attributes;



        public void setAttributes(List<Map> attributes) {
            this.attributes = attributes;
        }

        public List<Map> getAttributes() {
            return attributes;
        }

        public treedemo(String id, String text, String state, List<treedemo> children) {
            this.id = id;
            this.text = text;
            this.state = state;
            this.children = children;
        }

        public treedemo(String id, String text, List<treedemo> children) {
            this.id = id;
            this.text = text;
            this.children = children;
        }

        public treedemo(String id, String text) {
            this.id = id;
            this.text = text;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public List<treedemo> getChildren() {
            return children;
        }

        public void setChildren(List<treedemo> children) {
            this.children = children;
        }
    }

    /**
     * Created by yangliu on 2017/7/29.
     */
    public static class User {
        private int id ;
        private String name;
        private int age;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }
    }
}
